home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DAS / A-C / CasioDA.cpt / Casio DA / casio file < prev    next >
Text File  |  1987-01-12  |  1KB  |  31 lines

  1. /*
  2.  * structure of Casio DA save file
  3.  */
  4. enum    {clockMode,watchMode,countMode,alarmMode};
  5.  
  6. #define    nModes        (alarmMode+1)
  7. #define    nTimers        10
  8. #define    nSize        12
  9.  
  10. struct    casio    {
  11.     short        version;        /* version # */
  12.     short        curMode;        /* current display mode */
  13.     Point        windPos;        /* window position */
  14.     short        curTimer[nModes];    /* current timers */
  15.     short        countRpt;        /* counter repeat flags */
  16.     short        watchRun;        /* watches running */
  17.     short        countRun;        /* counters running */
  18.     short        alarmSet;        /* alarms set */
  19.     unsigned long    clockTime;        /* time of day */
  20.     unsigned long    countInit[nTimers];    /* counter resets */
  21.     unsigned long    watchTime[nTimers];    /* watch times */
  22.     unsigned long    countTime[nTimers];    /* counter times */
  23.     unsigned long    alarmTime[nTimers];    /* alarm times */
  24.     char        timeZone[nTimers];    /* time zone adjusts */
  25.     char        timerName[nModes][nTimers][nSize];/* timer names */
  26.     short        lastWord;        /* the last word (same as version) */
  27. };
  28.  
  29. #define    cycleFlag    timeZone[0]    /* 12 (0) or 24 (1) hour display */
  30.  
  31.